package cn.wolfcode.mapper;

import cn.wolfcode.domain.Role;
import cn.wolfcode.domain.Role;
import cn.wolfcode.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    void delete(Long id);

    void deletePermissionRelation(@Param("roleId") Long roleId);

    void deleteEmployeeRelation(@Param("roleId") Long roleId);
    void insert(Role role);
    void insertRelation(@Param("roleId") Long roleId, @Param("permissionId") Long permissionId);

    Role get(Long id);

    List<Role> selectAll();

    void update(Role role);

    List<Role> selectForList(QueryObject qo);

	List<String> selectSnByEmployeeId(Long id);
}